package com.uc503.ucoa.service.impl;

import com.uc503.ucoa.dao.UserInfoRepository;
import com.uc503.ucoa.domain.UserInfo;
import com.uc503.ucoa.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserInfoRepository userInfoRepository;
    public List<UserInfo> getUserList() {
        List<UserInfo> userInfoList = userInfoRepository.selectAllUsers();
        return userInfoList;
    }
}
